function Supermarket() {};
Supermarket.prototype.product = 'Mask';


function Shop(){};
Shop.prototype = new Supermarket();

var person = new Shop();

console.log('person.product', person.product);
console.log('person.__proto__', person.__proto__);
console.log('person.__proto__ === Shop.prototype', person.__proto__ === Shop.prototype);
console.log('person.__proto__.__proto__ === Supermarket.prototype', person.__proto__.__proto__ === Supermarket.prototype);
console.log('Supermarket.prototype', Supermarket.prototype);
console.log('new Supermarket()', new Supermarket());
console.log('new Supermarket().__proto__', new Supermarket().__proto__);
